-- GENERATED SPELL FOR [Doomfire Destroyer] --


function spell0_25592(pUnit, Event) --@Create Doomfire Shard,n/a--
pUnit:FullCastSpellOnTarget(46306,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25592', 542, 1)
end

function Sorts_25592(pUnit, Event)
local choix_sorts_25592 = math.random(0, 0)
if choix_sorts_25592 == 0 then
pUnit:RegisterEvent('spell0_25592', 1, 1)
end
end

function mob25592_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25592', math.random(1500, 3000), 1)
end

function mob25592_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25592_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25592_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25592, 1, 'mob25592_Action')
RegisterUnitEvent(25592, 2, 'mob25592_Leave')
RegisterUnitEvent(25592, 3, 'mob25592_Kill')
RegisterUnitEvent(25592, 4, 'mob25592_Die')
